package onki.tests;

import onki.tests.pageObjects.OnkiConceptPageObject;
import static org.junit.Assert.assertTrue;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.PageFactory;

@Test(dependsOnGroups = "statistics", groups = {"hierarchy"})
public class HierarchyCompleteness extends OnkiTestBase {

  private WebDriver driver;
  private OnkiConceptPageObject page;
  private final String carrotUri;

  public HierarchyCompleteness() {
    carrotUri = "http://www.yso.fi/onto/yso/p5066";
  }

  public void testLeafCount() {
    assertTrue(false);
  }

  @BeforeClass
  public void setUp() {
    this.driver = new FirefoxDriver();
    this.page = loadConcept(carrotUri, "fi");
  }

  @AfterClass
  public void tearDown() {
    this.driver.close();
  }

  public OnkiConceptPageObject loadConcept(String uri, String lang) {
    this.driver.get(lightenUrl(uri, lang));
    OnkiConceptPageObject pageObject = PageFactory.initElements(this.driver, OnkiConceptPageObject.class);
    return pageObject;
  }
}
